package com.dp.demo.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.dp.demo.config.MyNacosProperties;
import com.dp.demo.service.GoodsClient;
import com.dp.demo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: dupeng
 * @CreateTime: 2024-12-05  18:03
 * @Description: TODO
 */
@RestController
@RequestMapping(value = "/seata")
public class SeataController {


    @Autowired
    private OrderService orderService;


    @GetMapping("/seataSave")
    public String seataSave() {
        orderService.seataSave();
        return "ok";
    }


}
